package com.spring.shops.service;

import com.spring.shops.model.entity.TzArea;
import com.spring.shops.model.result.ServerResponseEntityVoid;
import com.spring.shops.model.vo.AreaVO;

import java.util.List;

public interface AreaService {
    /**
     * 递归获取所有的省县区
     * @param pid
     * @return
     */
    ServerResponseEntityVoid<List<TzArea>> getArea(String pid);

    ServerResponseEntityVoid<List<AreaVO>> list();
    /**
     * 新增数据
     * @param area
     * @return
     */
    ServerResponseEntityVoid save(TzArea area);
    /**
     * 根据id删除数据
     * @param id
     * @return
     */
    ServerResponseEntityVoid deleteById(Long id);
    /**
     * 根据id获取信息
     * @param id
     * @return
     */
    ServerResponseEntityVoid<AreaVO> getInfoById(Long id);
    /**
     * 更新数据
     * @param vo
     * @return
     */
    ServerResponseEntityVoid updateInfo(AreaVO vo);
}
